/**
 * 〈一句话功能简述〉<br>
 * 〈〉
 *
 * @author 13754
 * @create 2023/11/22
 * @since 1.0.0
 */
package com.mengniu.commerce.collect.controller;

import com.mengniu.commerce.collect.service.WmItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;


/**
* @Description: 商品控制层 主要用于测试
* @Param:
* @return:
* @Author: zfw
* @Date: 2023/11/28
* @Date: 16:04
*/
@RestController
@RequestMapping("/item")
public class ItemController {

    @Autowired
    private WmItemService wmItemService;

    /***
    * @Description: 商品创建
    * @Param: []
    * @return: void
    * @Author: zfw
    * @Date: 2023/12/3
    * @Date: 11:38
    */
    @GetMapping("/createItem")
    public void createItem(@RequestParam("bosId") Long bosId,@RequestParam("goodsId") Long goodsId)  {
        wmItemService.createItemByMessage(bosId,goodsId);
    }

    /***
    * @Description: 商品修改
    * @Param: []
    * @return: void
    * @Author: zfw
    * @Date: 2023/12/3
    * @Date: 11:38
    */
    @GetMapping("/update")
    public void update(@RequestParam("bosId") Long bosId,@RequestParam("goodsId") Long goodsId)  {
       wmItemService.updateItemByMessage(bosId,goodsId);
    }

}
